//
//  SERegistrationDoctorCell.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/4/6.
//

import UIKit

// TODO: 弃用

class SERegistrationDoctorCell: UITableViewCell {

    static let className = "SERegistrationDoctorCell"
    static let reuseId = className

    @IBOutlet weak var avatorImgView: UIImageView! {
        didSet {
            avatorImgView.layer.cornerRadius = avatorImgView.frame.size.height / 2.0
            avatorImgView.layer.masksToBounds = true
        }
    }
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var jobTitleLabel: UILabel!
    @IBOutlet weak var goodAtLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    func updateCell(model: SERegistrationDoctorModel) {
        nameLabel.text = model.doctorName
        jobTitleLabel.text = model.jobTitle
        goodAtLabel.text = model.goodAt
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
